import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/user_drama_auth_list_entity.dart';

UserDramaAuthListEntity $UserDramaAuthListEntityFromJson(
    Map<String, dynamic> json) {
  final UserDramaAuthListEntity userDramaAuthListEntity = UserDramaAuthListEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    userDramaAuthListEntity.id = id;
  }
  final int? sort = jsonConvert.convert<int>(json['sort']);
  if (sort != null) {
    userDramaAuthListEntity.sort = sort;
  }
  final String? vid = jsonConvert.convert<String>(json['vid']);
  if (vid != null) {
    userDramaAuthListEntity.vid = vid;
  }
  return userDramaAuthListEntity;
}

Map<String, dynamic> $UserDramaAuthListEntityToJson(
    UserDramaAuthListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['sort'] = entity.sort;
  data['vid'] = entity.vid;
  return data;
}

extension UserDramaAuthListEntityExtension on UserDramaAuthListEntity {
  UserDramaAuthListEntity copyWith({
    int? id,
    int? sort,
    String? vid,
  }) {
    return UserDramaAuthListEntity()
      ..id = id ?? this.id
      ..sort = sort ?? this.sort
      ..vid = vid ?? this.vid;
  }
}